package be.darling.scrt.test;

import be.darling.scrt.design.RandomizationTest;
import be.darling.scrt.statistics.Statistic;
import java.io.File;
import java.util.Iterator;

/**
 * Created by IntelliJ IDEA.
 * User: geert
 * Date: Nov 20, 2007
 * Time: 11:30:33 PM
 * To change this template use File | Settings | File Templates.
 */
public class Example1 {

    public static void test1(){
        RandomizationTest test = new RandomizationTest(new File("conf/randomizationTest.xml") );
        test.setFile("data/example1.xml");
       
        test.run();
        System.out.println("Total "+test.getValidIterations());

        Iterator it = test.statisticsIterator();
        while(it.hasNext())
        {
            Statistic stat = (Statistic)it.next();
            System.out.println("Output: " + stat.getName() + "\t" + stat.p(test.isExhaustive()));
            System.out.println("Total "+test.getValidIterations());
        }
    }

    public static void main(String[] args) {
        test1();
    }
}
